package pers.mihao.quickstream.common.plus.log.model;

import pers.mihao.quickstream.common.plus.log.enums.LogFieldEnum;
import pers.mihao.quickstream.common.plus.log.model.AbstractLog;

import java.util.Arrays;

/**
 * 记录请求参数日志
 *
 * @author mihao
 * @since 2021/7/2 13:04
 */
public class RecordRequestLog extends AbstractLog {

    @Override
    public String getTableName() {
        return null;
    }

    @Override
    public LogFieldEnum[] getExtLogField() {
        LogFieldEnum[] list = super.getExtLogField();
        LogFieldEnum[] returnRes = Arrays.copyOf(list, list.length + 1);
        returnRes[list.length] = LogFieldEnum.REQUEST;
        return returnRes;
    }
}
